import {BasePage, BaseInput} from "../../../ts/type";
import {replace} from "../../../ts/util";

export let configDetailInit = (page: BasePage) => {
    let detailModel = page.models.filter(m => 'detail' == m.formKey)[0]
    detailModel.formInputs.push(replace(new BaseInput('id', 'id'), {
        hidden: true
    }))
// field input auto
// #bind.field.configCode#
    detailModel.formInputs.push(replace(new BaseInput('配置编码', 'configCode'), {
        span: 12
    }))
// $bind.field.configCode$

// #bind.field.configName#
    detailModel.formInputs.push(replace(new BaseInput('配置名称', 'configName'), {
        span: 12
    }))
// $bind.field.configName$

// #bind.field.javaPath#
    detailModel.formInputs.push(replace(new BaseInput('JAVA地址', 'javaPath'), {
        span: 12
    }))
// $bind.field.javaPath$

// #bind.field.uiPath#
    detailModel.formInputs.push(replace(new BaseInput('ui路径', 'uiPath'), {
        span: 12
    }))
// $bind.field.uiPath$


}